import request from '@/utils/request'
export interface getshareType {
    pageSize: number,
    currentPage: number,
    calssid?: number
}
export default {
    //获取服务商品（可根据classid查）
    getAllServegoods: (data: any) => request.post("/getAllServegoods", data),
    //增加服务商品
    addServegoods: (data: any) => request.post("/addServegoods", data),
    //修改服务商品
    updateServegoods: (data: any) => request.put("/updateServegoods", data),
    //删除服务商品
    deleteServegoods: (data: any) => request.delete("/deleteServegoods", { params: data }),
    //获取服务分类
    getServeclassLikeTree: () => request.get("/getServeclassLikeTree"),
    //获取单个商品信息
    getOneServegoods: (data: any) => request.post("/getOneServegoods", data),
    //模糊查询
    SearchServegoods: (data: any) => request.post("/SearchServegoods", data),
}